import babel from 'rollup-plugin-babel';
var path = require("path");

module.exports = {

    entry: path.join(__dirname, "components/DemoComponent.js"),
    targets:[
        {dest: path.join(__dirname, "components/DemoComponent.es5.js"), format: "cjs"}
    ],
    moduleName: "DemoComponent",
    external: ['jquery', 'lodash'],
    plugins: [
        babel()
    ],
    context: 'window'
};